<style>
    .layui-table th {
        position: relative;
        padding: 5px 15px !important;
        min-height: 20px;
        line-height: 20px;
        font-size: 14px;
    }

    .layui-table td {
        position: relative;
        padding: 5px 15px !important;
        min-height: 20px;
        line-height: 20px;
        font-size: 14px;
    }
</style>
<script type="text/html" template lay-done="layui.data.sendParams(d.params)"></script>
<div class="layui-form" lay-filter="form-consumer">
    <fieldset class="layui-elem-field">
        <legend>密钥信息</legend>
        <div class="layui-field-box">
            <div class="layui-form-item">
                <label class="layui-form-label">appKey</label>
                <div class="layui-input-block">
                    <script type="text/html" template>
                        <input type="text" name="appKey" value="{{ d.params.appKey  || ''}}" class="layui-input"
                               disabled>
                    </script>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">appSecret</label>
                <div class="layui-input-block">
                    <script type="text/html" template>
                        <input type="text" name="appSecret" value="{{ d.params.appSecret  || ''}}" class="layui-input"
                               disabled>
                    </script>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">RsaPublic</label>
                <div class="layui-input-block">
                    <script type="text/html" template>
                        <textarea name="rsaPublic" class="layui-textarea"
                                  disabled>{{ d.params.rsaPublic  || ''}}</textarea>
                    </script>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">RsaPrivate</label>
                <div class="layui-input-block">
                    <script type="text/html" template>
                        <textarea name="rsaPrivate" class="layui-textarea"
                                  disabled>{{ d.params.rsaPrivate  || ''}}</textarea>
                    </script>
                </div>
            </div>
        </div>
    </fieldset>
</div>

<script>
    layui.data.sendParams = function (params) {
        layui.use(['admin', 'form', 'setter'], function () {
            var $ = layui.$
                , admin = layui.admin
                , form = layui.form
                , setter = layui.setter;

            var apiUrl = setter.apiUrl;

            form.render();
            form.render('select');
        });
    }
</script>